import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { FinanceComponent } from './finance.component';
import { SettlementPeriodComponent } from './settlement-period/settlement-period.component';
import { CanActivateGuard } from 'src/app/@core/services/can-load-service.guard';

const routes: Routes = [
  {
    path:'',
    component:FinanceComponent,
    children:[
      {
        path:"settlement-period",
        component:SettlementPeriodComponent,
        canActivate: [CanActivateGuard]
      }
    ]
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class FinanceRoutingModule { }
